<template>
  <div class="video-display">测试数据 {{ aa }}


    <el-input v-model="input" placeholder="请输入内容" clearable></el-input>

    <el-button type="primary" @click="open">提交</el-button>

  </div>

</template>

<script>

import {add, getaaaa} from "@/api/test/testData";


export default {
  name: "video-display",
  mixins: [],
  props: {},
  components: {},
  computed: {},
  data() {
    return {
      aa: '你好',
      input: ''
    };
  },
  mounted() {
  },
  created() {
    this.getData();
  },
  methods: {
    getData() {
      console.log("11111")
      getaaaa().then(response => {
        console.log(response)
        this.aa = response;
      });
    }
    ,
    open() {
      console.log(this.aa)
      console.log(this.input)
      add(this.input, this.aa).then(response => {

        console.log(response)

        this.$message({
          message: response,
          type: 'success'
        });

      });

    }

  },
};
</script>
<style lang="scss"></style>
